
import { legacy_createStore as createStore, combineReducers, applyMiddleware } from 'redux'

import app from './modules/app'
import pro from './modules/pro'

// 导入 thunk
import thunk from 'redux-thunk'

const reducer = combineReducers({
    app,pro
})

// applyMiddleware(thunk) 应用异步模块
const store = createStore(reducer, applyMiddleware(thunk))

export default store